package com.lx.principles.demo3;

/**
 * @ClassName Computer
 * @Description: 电脑
 * @Author: 落雪
 * @CreateDate: 2025/1/12 14:05
 * @UpdateUser: 落雪
 * @UpdateDate: 2025/1/12 14:05
 * @UpdateRemark:
 * @Version: 1.0
 */
public class Computer {

    private CPU cpu;

    private Memory memory;

    private HardDisk hardDisk;

    public CPU getCpu() {
        return cpu;
    }

    public void setCpu(CPU cpu) {
        this.cpu = cpu;
    }

    public Memory getMemory() {
        return memory;
    }

    public void setMemory(Memory memory) {
        this.memory = memory;
    }

    public HardDisk getHardDisk() {
        return hardDisk;
    }

    public void setHardDisk(HardDisk hardDisk) {
        this.hardDisk = hardDisk;
    }

    public void run(){
        hardDisk.get();
        memory.get();
        cpu.run();
    }
}
